package org.lost.design.factory.method;

import org.lost.design.factory.NYStyleCheesePizza;
import org.lost.design.factory.NYStyleClamPizza;
import org.lost.design.factory.NYStyleVeggiePizza;
import org.lost.design.factory.Pizza;
import org.lost.design.factory.PizzaType;
import org.lost.design.factory.abstracts.NYPizzaIngredientFactory;

public class NYStylePizzaStore extends PizzaStore {
    
    @Override
    Pizza createPizza(PizzaType type) {
        Pizza pizza = null;
        switch (type) {
            case Chessse:
                pizza = new NYStyleCheesePizza(new NYPizzaIngredientFactory());
                break;
            case Veggie:
                pizza = new NYStyleVeggiePizza();
                break;
            case Clam:
                pizza = new NYStyleClamPizza();
                break;
            default:
                break;
        }
        return pizza;
    }
    
}
